package com.woniuxy.dao;

import com.woniuxy.controller.info.DefectTypeIdAndNameInfo;
import com.woniuxy.model.Defectstate;
import com.woniuxy.model.Defecttype;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 马世亮
 * @since 2022-02-15
 */
public interface DefecttypeDao extends BaseMapper<Defecttype> {

    @Select("SELECT defectType_id,defectType_name FROM t_defecttype WHERE defectType_state=1")
    List<DefectTypeIdAndNameInfo> selectIdAndName();
    @Select("SELECT * FROM t_defecttype where defectType_delect=0 ORDER BY defectType_num")
    List<Defecttype> selectAll();
}
